package org.eiahe.hr.performance.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.performance.domain.PerformanceResult;
import org.eiahe.hr.performance.domain.PerformanceScoreDetail;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 绩效评分明细视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PerformanceScoreDetail.class)
public class PerformanceScoreDetailVo {

    /**
     * 明细ID
     */
    private Long detailId;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 结果ID
     */
    private Long resultId;

    /**
     * 评分ID
     */
    private Long scoreId;

    /**
     * 指标ID
     */
    private Long indicatorId;

    /**
     * 指标名称
     */
    private String indicatorName;

    /**
     * 评分人
     */
    private String scorer;

    private String scorerName;

    /**
     * 得分
     */
    private BigDecimal score = BigDecimal.ZERO;

    /**
     * 权重
     */
    private BigDecimal weight;

    /**
     * 加权得分
     */
    private BigDecimal weightedScore;

    /**
     * 评分状态(0未评分 1已评分 2弃权)
     */
    private String scoreStatus = "0";

    /**
     * 删除标志(0存在 1删除)
     */
    private String delFlag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
